<template>
  <div class="login-page">
    <div class="login-add-register-box">
      <div class="login-add-register-left"></div>
      <div class="login-add-register-right">
        <el-tabs class="left-info" v-model="activeName" @tab-click="handleClick" style="width:300px;">
          <el-tab-pane label="登录" name="login">登录</el-tab-pane>
          <el-tab-pane label="注册" name="register">注册</el-tab-pane>
        </el-tabs>
        <LoginRegister />
      </div>
    </div>
  </div>
</template>
<script>
import LoginRegister from "@/components/LoginRegister.vue";
export default {
  name: "Login",
  components: {
    LoginRegister,
  },
  data() {
      return {
          activeName: 'login'
      }
  },
  methods: {
      handleClick(){}
  },
};
</script>
<style lang="scss">
.login-page {
  width: 100%;
  height: 100vh;
  background: url(../assets/image/home-bg.png) no-repeat;
  overflow: hidden;
}
.login-add-register-box {
    width: 700px;
    height: 300px;
    background-color: #fff;
    margin: 200px auto;
    .login-add-register-left{
        width: 400px;
        height: 300px;
        background-color: bisque;
        float: left;
    }
    .login-add-register-right{
        width: 300px;
        height: 300px;
        float: right;
        .el-tabs__item{
          width: 150px !important;
          text-align: center !important;
        }
        .el-tabs__active-bar{
          width: 150px !important;
        }
    }
  }
</style>